package com.kaguya.vams.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 角色 - 菜单权限 关联 实体类
 * </p>
 *
 * @author kaguya
 * @since 2021-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysRoleMenu{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotNull(message = "角色id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long roleId;

    @NotNull(message = "菜单id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long menuId;


}
